package com.jrx.anytxn.param.service.couponReport;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.i18n.response.TxnPage;
import com.jrx.anytxn.param.dto.couponReport.TlCouponSummaryRes;
import com.jrx.anytxn.param.entity.TlCouponSummary;

public interface ITlCouponSummaryService {

    /**
     * 分页查询优惠券发放汇总信息
     * @param pageNum
     * @param pageSize
     * @param tenantId
     * @return
     * @throws TxnException
     */
    TxnPage<TlCouponSummaryRes> findAllPageByTenantId(Integer pageNum, Integer pageSize, String tenantId) throws TxnException;

    /**
     * 写入优惠券发放汇总表
     * @param tlCouponSummary
     */
    void addCouponSummary(TlCouponSummary tlCouponSummary);

    /**
     * 根据租户ID 主键ID查询
     * @param id
     * @param tenantId
     * @return
     */
    TlCouponSummary findById(Long id,String tenantId);
}
